<?php
namespace app\exceptions;

use yii\base\Model;
class FormParamNotValidateException extends \Exception {
	const ERROR_CODE = 1;
	const ERROR_MESSAGE = '参数检查未通过';
	
	/**
	 * 模型
	 * @var Model
	 */
	public $model;
	
	public function __constructor(Model $model) {
		parent::__constructor(self::ERROR_MESSAGE, self::ERROR_CODE);
		$this->model = $model;
	}
}